import { WidgetDefinitionOptions } from '@/core/model/WidgetDefinition'
import DefaultWidget from '@/components/application-editor/widget/invisible/DefaultWidget.vue'
import BaseText from '@/components/application-editor/widget/BaseText.vue'
import WidgetGroup from '@/components/application-editor/widget/invisible/WidgetGroup.vue'
import SimpleText from './text/simple-text/index'

const isBuildinWidgets: WidgetDefinitionOptions[] = [
  {
    tag: 'DefaultWidget',
    displayName: '默认组件',
    component: DefaultWidget,
    isBuildin: true,
    isSystem: true
  }, {
    tag: 'WidgetGroup',
    displayName: '组',
    component: WidgetGroup,
    isWidgetGroup: true,
    autoSize: true,
    isBuildin: true,
    isSystem: true
  },
  SimpleText
]

export default isBuildinWidgets